const dayjs = require('dayjs')
const utc = require('dayjs/plugin/utc')
dayjs.extend(utc)
export function formatUtc(time: string, timeType = 'YYYY-MM-DD hh:mm') {
  return dayjs.utc(time).utcOffset(8).format(timeType)
}
